<?php /* Smarty version Smarty-3.0.9, created on 2013-05-29 15:26:24
         compiled from "D:/wamp/www/glight/templates\Crear_Nuevo_Diseno.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1273851a61e20e3b785-09323457%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'ce748e74164b2df968b4ddc7f8f1334ad8c7efad' => 
    array (
      0 => 'D:/wamp/www/glight/templates\\Crear_Nuevo_Diseno.tpl',
      1 => 1369841176,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1273851a61e20e3b785-09323457',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>

<table id="drag" border="2">
		
		<!--	<th colspan="2"><h3>Form:</h3></th> Acá va una especie de "cabecera"-->
            
			<tr>
                            <!--Panel Información del diseno-->
			<td>
            <form action="Crear_Nuevo_Diseno.php?option=guardar_diseno" method="POST">
				 <fieldset>
					  <legend>Informacion del diseño</legend>
                                          Código Diseño: <input type="number" required name="Codigo_Diseno_tpl" min=1 autocomplete="off"><br>
                                          Nombre Diseño: <input type="text" required name="Nombre_Diseno_tpl" autocomplete="off"><br>
                                          Descripción del Diseño: <textarea type="text" required name="Descripcion_Diseno_tpl" autocomplete="off" cols= 50 height= 30></textarea><br>
					  </fieldset>
                            
                             <input type="submit" value="Guardar Diseño">
                </form>
			</td>
                        
                        <!--Panel Parámetros de control-->
                        <td>
                            
                        <fieldset>
                            
                            		<form action="Crear_Nuevo_Diseno.php?option=agregar" method="POST">

					  <legend>Parámetros de control</legend>
                                          Código P.C: <input type="number" id = "Cod_Codigo_PC" required name="Codigo_PC_tpl" min=1 autocomplete="off"><br>
                                          Nombre P.C: <input type="text" id= "Cod_Nombre_PC" required name="Nombre_PC_tpl" autocomplete="off"><br>
					  <!--Cantidad: <input type="number" required name="cant" autocomplete="off"><input type="button" value="Agregar detalle"><br>-->
                                          Fase de desarrollo: <select name="Fase_Desarrollo_tpl">
                                                <?php unset($_smarty_tpl->tpl_vars['smarty']->value['section']['i']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'] = is_array($_loop=$_smarty_tpl->getVariable('fase')->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['name'] = 'i';
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total']);
?>
                                                    if()
                                                      <option <?php if (isset($_smarty_tpl->getVariable('object',null,true,false)->value->fase)){?>selected<?php }?> value="<?php echo $_smarty_tpl->getVariable('fase')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]->get('codigo');?>
"><?php echo $_smarty_tpl->getVariable('fase')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]->get('nombre');?>
</option> 
                                                <?php endfor; endif; ?>
                                                        </select>
                                          <br>
                                        Descripción del Parámetro de Control: <textarea type="text" id = "Cod_Descripcion_Parametro" required name="Descripcion_Parametro_tpl" autocomplete="off" rows = "2" cols = "50"></textarea><br>
                                      
                                        <input type="submit" value="Agregar P.control" id="AgregarParametro" >
                             
                                        </form>
                                    <form action="Crear_Nuevo_Diseno.php?option=limpiar" method="POST">
<input type="submit" value="Limpiar" id="btnReset" >

                                    </form>
                        </fieldset>
                        </td>
                       <!-- Lista parámetros de control-->
                       <td valign=top>
                        <fieldset>
					  <legend>Lista de Parametros de control</legend>
    <?php unset($_smarty_tpl->tpl_vars['smarty']->value['section']['i']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'] = is_array($_loop=$_smarty_tpl->getVariable('parametros')->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['name'] = 'i';
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total']);
?>
          <?php $_smarty_tpl->tpl_vars['a'] = new Smarty_variable(unserialize($_smarty_tpl->getVariable('parametros')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]), null, null);?>
          <?php echo $_smarty_tpl->getVariable('a')->value->get('codigo');?>
----<?php echo $_smarty_tpl->getVariable('a')->value->get('nombre');?>
----<?php echo $_smarty_tpl->getVariable('a')->value->get('descripcion');?>
<br>
          
      <?php endfor; endif; ?>
			</fieldset>
                        </td>
                      
			</tr>
			
                       
                       <tr>

			<td>
	<form  method="post" action="<?php echo $_smarty_tpl->getVariable('gvar')->value['l_global'];?>
Crear_Nuevo_Diseno.php?option=cancelar">
			
                     <input name="cancelar" type="submit" value="Calcelar">
        </form>
			</td>
			</tr>
			
    
   
		</table><br/>
                
                